﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="EmployeesContactList.aspx.cs" Inherits="Employees_EmployeesContactList" %>

<%@ Register Src="../Control/DepartmentDList.ascx" TagName="DepartmentDList" TagPrefix="uc1" %>
<%@ Register Src="../Control/SelUser.ascx" TagName="SelUser" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <div>
        <infolight:webdatasource id="Master" runat="server" autoapply="True" webdatasetid="WMaster"
            datamember="ViewEmpContacts" CacheDataSet="True">
        </infolight:webdatasource>
    </div>
    <table cellpadding="0" cellspacing="5" class="TbSearch">
        <tr>
            <td style="width: 50px;">
                部门：
            </td>
            <td>
                <uc1:DepartmentDList ID="Depart" runat="server" />
            </td>
            <td style="width: 50px;">
                员工：
            </td>
            <td>
                <uc2:SelUser ID="SelUser" runat="server" />
            </td>
            <td style="width: 60px;">
                员工状态：
            </td>
            <td style="width:60px">
                <asp:DropDownList ID="ddlStatus" runat="server">
                    <asp:ListItem Value="-1">未选择</asp:ListItem>
                    <asp:ListItem Value="1">在职</asp:ListItem>
                    <asp:ListItem Value="0">离职</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td style="text-align:right; margin-right:10px;">
            <span class="roundbtn">
                            <asp:LinkButton ID="SearchButton" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;查&nbsp;&nbsp;询&nbsp;&nbsp;&nbsp;&nbsp;" OnClick="Search_Click"></asp:LinkButton>
                        </span>
            </td>
        </tr>
    </table>
    <div class="tabsI" runat="server" id="Record">
    </div>
    <infolight:webgridview id="wgvMaster" runat="server" cellpadding="5" datasourceid="Master"
        forecolor="#333333" width="100%" aborticonurl="../Image/UIPics/Abort.gif" addiconurl="../Image/UIPics/Add.gif"
        applyiconurl="../Image/UIPics/Apply.gif" canceliconurl="../Image/UIPics/Cancel.gif"
        mouseoveraborticonurl="../Image/UIPics/Abort2.gif" mouseoveraddiconurl="../Image/UIPics/Add2.gif"
        mouseoverapplyiconurl="../Image/UIPics/Apply2.gif" mouseovercanceliconurl="../Image/UIPics/Cancel2.gif"
        mouseoverokiconurl="../Image/UIPics/OK2.gif" mouseoverqueryiconurl="../Image/UIPics/Query2.gif"
        okiconurl="../Image/UIPics/OK.gif" 
        queryiconurl="../Image/UIPics/Query.gif" headerstylewrap="False"
        backcolor="White" bordercolor="White" borderstyle="Groove" 
        borderwidth="2px" ondatabound="wgvMaster_DataBound" PageSize="15">
        <pagersettings mode="NumericFirstLast" />
        <footerstyle backcolor="#507CD1" forecolor="White" font-bold="True"></footerstyle>
        <navcontrols>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                    MouseOverImageUrl="../image/uipics/add2.gif" ControlText="add" 
                    ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                    MouseOverImageUrl="../image/uipics/ok2.gif" ControlText="Insert" 
                    ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                    MouseOverImageUrl="../image/uipics/cancel2.gif" ControlText="cancel" 
                    ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif"></InfoLight:ControlItem>
</navcontrols>
        <columns>
               <asp:TemplateField ShowHeader="False"><EditItemTemplate>
<asp:ImageButton id="ImageButton1" runat="server" Text="Update" CausesValidation="True" ImageUrl="~/Image/UIPics/OK.gif" CommandName="Update" __designer:wfdid="w3"></asp:ImageButton>&nbsp;<asp:ImageButton id="ImageButton2" runat="server" Text="Cancel" CausesValidation="False" ImageUrl="~/Image/UIPics/Cancel.gif" CommandName="Cancel" __designer:wfdid="w4"></asp:ImageButton>
</EditItemTemplate>
    <headerstyle wrap="False" />
<ItemTemplate>
<asp:ImageButton id="ImageButton3" runat="server" Text="Edit" CausesValidation="False" ImageUrl="~/Image/UIPics/Edit.gif" CommandName="Edit" __designer:wfdid="w1"></asp:ImageButton>&nbsp;
</ItemTemplate>
</asp:TemplateField>
                <asp:BoundField DataField="EmployeeID" HeaderText="员工工号" 
                    SortExpression="EmployeeID" ReadOnly="True" />
                <asp:BoundField DataField="EmpName" HeaderText="员工姓名" 
                    SortExpression="EmpName" ReadOnly="True" />
                <asp:TemplateField HeaderText="所属部门" SortExpression="DepartmentId">
                    <EditItemTemplate>
                        <InfoLight:WebDropDownList ID="Dpt" runat="server" AutoInsertEmptyData="False" 
                            DriverObject="" Filter="" FilterObject="" onlyshowselecttext="True" 
                            SelectedValue='<%# Bind("DepartmentId") %>' DataSourceID="wdsDepartment" 
                            DataTextField="DepartmentName" DataValueField="DepartmentId">
                        </InfoLight:WebDropDownList>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <InfoLight:WebDropDownList ID="Dpt" runat="server" AutoInsertEmptyData="False" 
                            DriverObject="" Filter="" FilterObject="" onlyshowselecttext="True" 
                            SelectedValue='<%# Bind("DepartmentId") %>' DataSourceID="wdsDepartment" 
                            DataTextField="DepartmentName" DataValueField="DepartmentId">
                        </InfoLight:WebDropDownList>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Extension" HeaderText="分机" 
                    SortExpression="Extension" />
                <asp:BoundField DataField="Mobile" HeaderText="移动电话" 
                    SortExpression="Mobile" />
                <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
</columns>
        <rowstyle backcolor="#EFF3FB" horizontalalign="Center"></rowstyle>
        <editrowstyle backcolor="#2461BF" forecolor="White"></editrowstyle>
        <selectedrowstyle backcolor="#D1DDF1" forecolor="#333333" font-bold="True"></selectedrowstyle>
        <pagerstyle backcolor="LightBlue" forecolor="White" horizontalalign="Center"></pagerstyle>
        <headerstyle backcolor="DeepSkyBlue" forecolor="White" font-bold="True"></headerstyle>
        <alternatingrowstyle backcolor="White" bordercolor="White"></alternatingrowstyle>
    </infolight:webgridview>
    <infolight:webdefault id="wdViewEmpContacts" runat="server" defaultactive="True"
        datasourceid="Master" datamember="ViewEmpContacts" carryonactive="False">
    </infolight:webdefault>
    <infolight:webvalidate id="wvViewEmpContacts" runat="server" datasourceid="Master"
        datamember="ViewEmpContacts" validateactive="True" validatechar="" duplicatecheck="False"
        duplicatecheckmode="ByLocal" validatestyle="ShowLable" multilanguage="False"
        rowcss="" altrowcss="">
    </infolight:webvalidate>
    <infolight:webdatasource id="wdsDepartment" runat="server" selectalias="Usasdb" selectcommand="select Department.DepartmentId,Department.DepartmentName from Department"
        webdatasetid="" CacheDataSet="True">
    </infolight:webdatasource>
</asp:Content>
